#include "NamePipe.hpp"
#include <string>
#include <iostream>
#include <unistd.h>
// 服务器端口
int main()
{
    NamePiped pipe(pathname, Creator);
    while (true)
    {
        if (pipe.OpenForRead())
        {
            std::string message;
            pipe.ReadPipeData(&message);
            std::cout<<"Server Information: "<<message<<std::endl;
        }
        sleep(1);
    }
    return 0;
}